<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>layui自定义模块</title>
</head>
<body>

</body>
<!-- 引入layui -->
<script src="/static/layui.js"></script>
<!-- 配置layui全局配置, 相当于是手动引入自定义模块 -->
<script src="/static/global.js"></script>
<script>

    layui.use(['httpUtil'], function () {
        let httpUtil = layui.httpUtil;
        httpUtil.post('http://route.showapi.com/32-9', {
            'showapi_appid': 28043,
            'showapi_sign': 'fd5ce066f69441bfa078c0ad16129b15',
            'q': 'hello'
        }, function (res) {
            alert(JSON.stringify(res));
        });
    });

</script>
</html>